package com.owen.he.jee.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.owen.he.jee.utils.excel.SimpleExcel;

/**
 * 导入Excel对象关系
 * @author owen.he
 */
@Entity
@Table(name="student")
public class Student implements Serializable {
	private static final long serialVersionUID = -7859647901236323111L;

	/*
	 * 主键
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	/** 姓名 */
	@Column(name="name")
	@SimpleExcel(name = "姓名" , index = 0, width = 100)
	private String name;
	/** 年龄 */
	@Column(name="age")
	@SimpleExcel(name = "年龄", field = "age", index = 10, width = 100)
	private String age;
	/** 性别 */
	@Column(name="sex")
	@SimpleExcel(name = "性别", field = "sex", index = 20, width = 100)
	private String sex;
	
	/** 错误信息描述 */
	@SimpleExcel(name = "错误信息描述", isImport = false, isExport = false, index = 30, width = 200)
	private String errorMessage;
	
	public Student() {
		super();
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	
}

